Skip to content

ci(pylint): 添加 Pylint 检查工作流#5

Closed
linhemin wants to merge 2 commits intomainfrom
test
Closed

ci(pylint): 添加 Pylint 检查工作流#5
linhemin wants to merge 2 commits intomainfrom
test

Conversation

@linhemin
Copy link
Owner

  • 新增 .github/workflows/pylint_check.yml 文件
  • 配置 Pylint 检查在 Ubuntu 最新版本上运行
  • 在 PR 开启、同步、重新开启时触发检查
  • 设置 Python 环境并安装依赖
  • 执行 Pylint 检查并将结果输出到文件
  • 根据检查结果在 PR 中自动评论

@github-actions
Copy link

@linhemin 亲亲,喵喵检测到以下 Pylint 警告或错误,请主人检查并修改喵~

************* Module app
app.py:1:0: C0114: Missing module docstring (missing-module-docstring)
app.py:5:0: E0401: Unable to import 'pytz' (import-error)
app.py:6:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
app.py:7:0: E0401: Unable to import 'sqlalchemy' (import-error)
app.py:8:0: E0401: Unable to import 'sqlalchemy.ext.asyncio' (import-error)
app.py:28:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:67:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:69:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:98:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:126:11: W0718: Catching too general exception Exception (broad-exception-caught)
app.py:127:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module config
config.py:37:0: C0304: Final newline missing (missing-final-newline)
config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
config.py:3:0: E0401: Unable to import 'dotenv' (import-error)
config.py:10:0: C0115: Missing class docstring (missing-class-docstring)
config.py:10:0: R0902: Too many instance attributes (18/7) (too-many-instance-attributes)
config.py:32:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
config.py:32:20: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
config.py:10:0: R0903: Too few public methods (0/2) (too-few-public-methods)
config.py:37:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module models.config_model
models/config_model.py:20:0: C0304: Final newline missing (missing-final-newline)
models/config_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/config_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/config_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/config_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/config_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/config_model.py:9:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:9:0: R0903: Too few public methods (0/2) (too-few-public-methods)
models/config_model.py:17:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:17:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.user_model
models/user_model.py:107:0: C0304: Final newline missing (missing-final-newline)
models/user_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/user_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/user_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/user_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/user_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/user_model.py:11:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:50:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:52:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:57:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:59:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:64:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:66:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:73:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:78:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:80:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:85:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:104:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:104:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.__init__
models/__init__.py:4:0: C0305: Trailing newlines (trailing-newlines)
************* Module models
models/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module models.invite_code_model
models/invite_code_model.py:37:0: C0304: Final newline missing (missing-final-newline)
models/invite_code_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/invite_code_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/invite_code_model.py:4:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/invite_code_model.py:5:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/invite_code_model.py:6:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/invite_code_model.py:10:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: R0903: Too few public methods (1/2) (too-few-public-methods)
models/invite_code_model.py:34:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:34:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module bot.message_helper
bot/message_helper.py:51:0: C0301: Line too long (104/100) (line-too-long)
bot/message_helper.py:54:0: C0304: Final newline missing (missing-final-newline)
bot/message_helper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/message_helper.py:3:0: E0401: Unable to import 'pyrogram.errors' (import-error)
bot/message_helper.py:8:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/message_helper.py:12:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:17:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:27:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:32:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:50:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/message_helper.py:39:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:42:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:51:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.filters
bot/filters.py:59:0: C0304: Final newline missing (missing-final-newline)
bot/filters.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/filters.py:3:0: E0401: Unable to import 'pyrogram.filters' (import-error)
bot/filters.py:11:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:11:34: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:15:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:17:7: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:17:50: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:18:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:21:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:11:34: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:11:42: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:25:31: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:33:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:31:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:34:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:37:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:25:31: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:25:39: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:41:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:41:30: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:49:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:50:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:53:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:41:30: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:41:38: W0613: Unused argument 'client' (unused-argument)
************* Module bot.commands
bot/commands.py:73:0: C0301: Line too long (110/100) (line-too-long)
bot/commands.py:140:0: C0301: Line too long (106/100) (line-too-long)
bot/commands.py:296:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:310:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:381:0: C0301: Line too long (117/100) (line-too-long)
bot/commands.py:397:0: C0301: Line too long (102/100) (line-too-long)
bot/commands.py:444:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:448:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:453:0: C0301: Line too long (116/100) (line-too-long)
bot/commands.py:459:0: C0301: Line too long (108/100) (line-too-long)
bot/commands.py:468:0: C0301: Line too long (104/100) (line-too-long)
bot/commands.py:484:0: C0301: Line too long (101/100) (line-too-long)
bot/commands.py:494:0: C0304: Final newline missing (missing-final-newline)
bot/commands.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/commands.py:4:0: E0401: Unable to import 'pyrogram' (import-error)
bot/commands.py:5:0: E0401: Unable to import 'pyrogram.enums' (import-error)
bot/commands.py:6:0: E0401: Unable to import 'pyrogram.types' (import-error)
bot/commands.py:19:0: C0115: Missing class docstring (missing-class-docstring)
bot/commands.py:57:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:81:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:114:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:142:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:158:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:196:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:234:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:254:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:271:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:300:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:303:48: W0613: Unused argument 'clent' (unused-argument)
bot/commands.py:340:19: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:342:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:317:42: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:362:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:383:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:399:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:431:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/commands.py:431:4: R0914: Too many local variables (16/15) (too-many-locals)
bot/commands.py:433:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:437:26: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:441:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:445:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:449:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:455:40: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:461:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:465:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:469:39: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:473:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:477:31: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:481:35: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:485:36: W0613: Unused argument 'client' (unused-argument)
************* Module bot.__init__
bot/__init__.py:21:0: C0304: Final newline missing (missing-final-newline)
************* Module bot
bot/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module bot.utils
bot/utils.py:39:0: C0304: Final newline missing (missing-final-newline)
bot/utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/utils.py:7:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:13:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:11:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:14:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:18:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:32:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:37:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:35:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:38:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.bot_client
bot/bot_client.py:44:0: C0304: Final newline missing (missing-final-newline)
bot/bot_client.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/bot_client.py:3:0: E0401: Unable to import 'pyrogram' (import-error)
bot/bot_client.py:8:0: C0115: Missing class docstring (missing-class-docstring)
bot/bot_client.py:22:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:30:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:30:54: W0631: Using possibly undefined loop variable 'group_id' (undefined-loop-variable)
bot/bot_client.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:42:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module core.emby_api
core/emby_api.py:38:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:47:0: C0301: Line too long (110/100) (line-too-long)
core/emby_api.py:172:0: C0301: Line too long (109/100) (line-too-long)
core/emby_api.py:202:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:218:0: C0301: Line too long (103/100) (line-too-long)
core/emby_api.py:287:0: C0301: Line too long (106/100) (line-too-long)
core/emby_api.py:320:0: C0301: Line too long (119/100) (line-too-long)
core/emby_api.py:321:0: C0304: Final newline missing (missing-final-newline)
core/emby_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
core/emby_api.py:2:0: E0401: Unable to import 'requests' (import-error)
core/emby_api.py:21:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:42:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:49:16: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:54:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求 Emby 服务器超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:57:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:58:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到 Emby 服务器: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:58:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:61:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:62:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求 Emby 时发生未知错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:62:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:66:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:68:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:69:12: W0707: Consider explicitly re-raising using 'raise Exception(f'Emby API 请求失败') from e' (raise-missing-from)
core/emby_api.py:69:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:69:28: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
core/emby_api.py:79:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:83:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:94:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:98:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:131:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:135:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:168:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:172:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:183:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:187:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:198:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:202:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:214:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:218:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:231:15: W0718: Catching too general exception Exception (broad-exception-caught)
core/emby_api.py:232:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:247:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:265:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:275:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:282:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求路由服务超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:282:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:284:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:285:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到路由服务: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:285:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:287:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:288:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求路由服务时发生错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:288:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:298:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:305:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:309:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:316:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:320:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module services.user_service
services/user_service.py:168:0: C0303: Trailing whitespace (trailing-whitespace)
services/user_service.py:226:0: C0301: Line too long (112/100) (line-too-long)
services/user_service.py:249:0: C0301: Line too long (101/100) (line-too-long)
services/user_service.py:313:0: C0304: Final newline missing (missing-final-newline)
services/user_service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
services/user_service.py:8:0: E0401: Unable to import 'shortuuid' (import-error)
services/user_service.py:9:0: E0401: Unable to import 'sqlalchemy' (import-error)
services/user_service.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:61:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:63:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:102:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:114:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:126:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:129:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:148:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:152:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:154:21: E1101: Instance of 'UserService' has no '_check_register_permission' member (no-member)
services/user_service.py:155:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:176:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:188:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:222:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:223:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:231:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:245:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:246:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:254:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:268:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:269:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:280:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:21:0: R0904: Too many public methods (21/20) (too-many-public-methods)
************* Module services
services/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)

-----------------------------------
Your code has been rated at 6.02/10

1 similar comment
@github-actions
Copy link

@linhemin 亲亲,喵喵检测到以下 Pylint 警告或错误,请主人检查并修改喵~

************* Module app
app.py:1:0: C0114: Missing module docstring (missing-module-docstring)
app.py:5:0: E0401: Unable to import 'pytz' (import-error)
app.py:6:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
app.py:7:0: E0401: Unable to import 'sqlalchemy' (import-error)
app.py:8:0: E0401: Unable to import 'sqlalchemy.ext.asyncio' (import-error)
app.py:28:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:67:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:69:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:98:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:126:11: W0718: Catching too general exception Exception (broad-exception-caught)
app.py:127:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module config
config.py:37:0: C0304: Final newline missing (missing-final-newline)
config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
config.py:3:0: E0401: Unable to import 'dotenv' (import-error)
config.py:10:0: C0115: Missing class docstring (missing-class-docstring)
config.py:10:0: R0902: Too many instance attributes (18/7) (too-many-instance-attributes)
config.py:32:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
config.py:32:20: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
config.py:10:0: R0903: Too few public methods (0/2) (too-few-public-methods)
config.py:37:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module models.config_model
models/config_model.py:20:0: C0304: Final newline missing (missing-final-newline)
models/config_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/config_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/config_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/config_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/config_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/config_model.py:9:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:9:0: R0903: Too few public methods (0/2) (too-few-public-methods)
models/config_model.py:17:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:17:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.user_model
models/user_model.py:107:0: C0304: Final newline missing (missing-final-newline)
models/user_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/user_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/user_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/user_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/user_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/user_model.py:11:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:50:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:52:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:57:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:59:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:64:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:66:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:73:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:78:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:80:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:85:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:104:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:104:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.__init__
models/__init__.py:4:0: C0305: Trailing newlines (trailing-newlines)
************* Module models
models/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module models.invite_code_model
models/invite_code_model.py:37:0: C0304: Final newline missing (missing-final-newline)
models/invite_code_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/invite_code_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/invite_code_model.py:4:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/invite_code_model.py:5:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/invite_code_model.py:6:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/invite_code_model.py:10:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: R0903: Too few public methods (1/2) (too-few-public-methods)
models/invite_code_model.py:34:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:34:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module bot.message_helper
bot/message_helper.py:51:0: C0301: Line too long (104/100) (line-too-long)
bot/message_helper.py:54:0: C0304: Final newline missing (missing-final-newline)
bot/message_helper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/message_helper.py:3:0: E0401: Unable to import 'pyrogram.errors' (import-error)
bot/message_helper.py:8:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/message_helper.py:12:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:17:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:27:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:32:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:50:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/message_helper.py:39:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:42:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:51:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.filters
bot/filters.py:59:0: C0304: Final newline missing (missing-final-newline)
bot/filters.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/filters.py:3:0: E0401: Unable to import 'pyrogram.filters' (import-error)
bot/filters.py:11:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:11:34: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:15:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:17:7: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:17:50: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:18:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:21:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:11:34: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:11:42: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:25:31: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:33:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:31:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:34:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:37:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:25:31: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:25:39: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:41:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:41:30: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:49:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:50:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:53:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:41:30: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:41:38: W0613: Unused argument 'client' (unused-argument)
************* Module bot.commands
bot/commands.py:73:0: C0301: Line too long (110/100) (line-too-long)
bot/commands.py:140:0: C0301: Line too long (106/100) (line-too-long)
bot/commands.py:296:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:310:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:381:0: C0301: Line too long (117/100) (line-too-long)
bot/commands.py:397:0: C0301: Line too long (102/100) (line-too-long)
bot/commands.py:444:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:448:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:453:0: C0301: Line too long (116/100) (line-too-long)
bot/commands.py:459:0: C0301: Line too long (108/100) (line-too-long)
bot/commands.py:468:0: C0301: Line too long (104/100) (line-too-long)
bot/commands.py:484:0: C0301: Line too long (101/100) (line-too-long)
bot/commands.py:494:0: C0304: Final newline missing (missing-final-newline)
bot/commands.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/commands.py:4:0: E0401: Unable to import 'pyrogram' (import-error)
bot/commands.py:5:0: E0401: Unable to import 'pyrogram.enums' (import-error)
bot/commands.py:6:0: E0401: Unable to import 'pyrogram.types' (import-error)
bot/commands.py:19:0: C0115: Missing class docstring (missing-class-docstring)
bot/commands.py:57:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:81:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:114:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:142:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:158:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:196:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:234:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:254:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:271:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:300:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:303:48: W0613: Unused argument 'clent' (unused-argument)
bot/commands.py:340:19: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:342:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:317:42: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:362:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:383:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:399:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:431:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/commands.py:431:4: R0914: Too many local variables (16/15) (too-many-locals)
bot/commands.py:433:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:437:26: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:441:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:445:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:449:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:455:40: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:461:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:465:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:469:39: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:473:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:477:31: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:481:35: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:485:36: W0613: Unused argument 'client' (unused-argument)
************* Module bot.__init__
bot/__init__.py:21:0: C0304: Final newline missing (missing-final-newline)
************* Module bot
bot/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module bot.utils
bot/utils.py:39:0: C0304: Final newline missing (missing-final-newline)
bot/utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/utils.py:7:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:13:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:11:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:14:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:18:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:32:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:37:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:35:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:38:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.bot_client
bot/bot_client.py:44:0: C0304: Final newline missing (missing-final-newline)
bot/bot_client.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/bot_client.py:3:0: E0401: Unable to import 'pyrogram' (import-error)
bot/bot_client.py:8:0: C0115: Missing class docstring (missing-class-docstring)
bot/bot_client.py:22:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:30:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:30:54: W0631: Using possibly undefined loop variable 'group_id' (undefined-loop-variable)
bot/bot_client.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:42:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module core.emby_api
core/emby_api.py:38:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:47:0: C0301: Line too long (110/100) (line-too-long)
core/emby_api.py:172:0: C0301: Line too long (109/100) (line-too-long)
core/emby_api.py:202:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:218:0: C0301: Line too long (103/100) (line-too-long)
core/emby_api.py:287:0: C0301: Line too long (106/100) (line-too-long)
core/emby_api.py:320:0: C0301: Line too long (119/100) (line-too-long)
core/emby_api.py:321:0: C0304: Final newline missing (missing-final-newline)
core/emby_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
core/emby_api.py:2:0: E0401: Unable to import 'requests' (import-error)
core/emby_api.py:21:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:42:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:49:16: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:54:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求 Emby 服务器超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:57:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:58:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到 Emby 服务器: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:58:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:61:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:62:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求 Emby 时发生未知错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:62:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:66:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:68:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:69:12: W0707: Consider explicitly re-raising using 'raise Exception(f'Emby API 请求失败') from e' (raise-missing-from)
core/emby_api.py:69:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:69:28: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
core/emby_api.py:79:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:83:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:94:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:98:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:131:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:135:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:168:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:172:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:183:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:187:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:198:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:202:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:214:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:218:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:231:15: W0718: Catching too general exception Exception (broad-exception-caught)
core/emby_api.py:232:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:247:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:265:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:275:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:282:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求路由服务超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:282:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:284:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:285:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到路由服务: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:285:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:287:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:288:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求路由服务时发生错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:288:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:298:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:305:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:309:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:316:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:320:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module services.user_service
services/user_service.py:168:0: C0303: Trailing whitespace (trailing-whitespace)
services/user_service.py:226:0: C0301: Line too long (112/100) (line-too-long)
services/user_service.py:249:0: C0301: Line too long (101/100) (line-too-long)
services/user_service.py:313:0: C0304: Final newline missing (missing-final-newline)
services/user_service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
services/user_service.py:8:0: E0401: Unable to import 'shortuuid' (import-error)
services/user_service.py:9:0: E0401: Unable to import 'sqlalchemy' (import-error)
services/user_service.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:61:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:63:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:102:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:114:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:126:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:129:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:148:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:152:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:154:21: E1101: Instance of 'UserService' has no '_check_register_permission' member (no-member)
services/user_service.py:155:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:176:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:188:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:222:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:223:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:231:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:245:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:246:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:254:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:268:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:269:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:280:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:21:0: R0904: Too many public methods (21/20) (too-many-public-methods)
************* Module services
services/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)

-----------------------------------
Your code has been rated at 6.02/10

@github-actions
Copy link

@linhemin 亲亲,喵喵检测到以下 Pylint 警告或错误,请主人检查并修改喵~

************* Module app
app.py:1:0: C0114: Missing module docstring (missing-module-docstring)
app.py:5:0: E0401: Unable to import 'pytz' (import-error)
app.py:6:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
app.py:7:0: E0401: Unable to import 'sqlalchemy' (import-error)
app.py:8:0: E0401: Unable to import 'sqlalchemy.ext.asyncio' (import-error)
app.py:28:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:67:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:69:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:98:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:126:11: W0718: Catching too general exception Exception (broad-exception-caught)
app.py:127:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module config
config.py:37:0: C0304: Final newline missing (missing-final-newline)
config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
config.py:3:0: E0401: Unable to import 'dotenv' (import-error)
config.py:10:0: C0115: Missing class docstring (missing-class-docstring)
config.py:10:0: R0902: Too many instance attributes (18/7) (too-many-instance-attributes)
config.py:32:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
config.py:32:20: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
config.py:10:0: R0903: Too few public methods (0/2) (too-few-public-methods)
config.py:37:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module models.config_model
models/config_model.py:20:0: C0304: Final newline missing (missing-final-newline)
models/config_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/config_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/config_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/config_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/config_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/config_model.py:9:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:9:0: R0903: Too few public methods (0/2) (too-few-public-methods)
models/config_model.py:17:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:17:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.user_model
models/user_model.py:107:0: C0304: Final newline missing (missing-final-newline)
models/user_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/user_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/user_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/user_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/user_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/user_model.py:11:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:50:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:52:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:57:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:59:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:64:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:66:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:73:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:78:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:80:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:85:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:104:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:104:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.__init__
models/__init__.py:4:0: C0305: Trailing newlines (trailing-newlines)
************* Module models
models/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module models.invite_code_model
models/invite_code_model.py:37:0: C0304: Final newline missing (missing-final-newline)
models/invite_code_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/invite_code_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/invite_code_model.py:4:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/invite_code_model.py:5:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/invite_code_model.py:6:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/invite_code_model.py:10:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: R0903: Too few public methods (1/2) (too-few-public-methods)
models/invite_code_model.py:34:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:34:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module bot.message_helper
bot/message_helper.py:51:0: C0301: Line too long (104/100) (line-too-long)
bot/message_helper.py:54:0: C0304: Final newline missing (missing-final-newline)
bot/message_helper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/message_helper.py:3:0: E0401: Unable to import 'pyrogram.errors' (import-error)
bot/message_helper.py:8:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/message_helper.py:12:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:17:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:27:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:32:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:50:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/message_helper.py:39:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:42:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:51:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.filters
bot/filters.py:59:0: C0304: Final newline missing (missing-final-newline)
bot/filters.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/filters.py:3:0: E0401: Unable to import 'pyrogram.filters' (import-error)
bot/filters.py:11:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:11:34: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:15:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:17:7: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:17:50: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:18:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:21:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:11:34: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:11:42: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:25:31: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:33:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:31:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:34:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:37:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:25:31: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:25:39: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:41:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:41:30: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:49:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:50:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:53:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:41:30: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:41:38: W0613: Unused argument 'client' (unused-argument)
************* Module bot.commands
bot/commands.py:73:0: C0301: Line too long (110/100) (line-too-long)
bot/commands.py:140:0: C0301: Line too long (106/100) (line-too-long)
bot/commands.py:296:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:310:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:381:0: C0301: Line too long (117/100) (line-too-long)
bot/commands.py:397:0: C0301: Line too long (102/100) (line-too-long)
bot/commands.py:444:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:448:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:453:0: C0301: Line too long (116/100) (line-too-long)
bot/commands.py:459:0: C0301: Line too long (108/100) (line-too-long)
bot/commands.py:468:0: C0301: Line too long (104/100) (line-too-long)
bot/commands.py:484:0: C0301: Line too long (101/100) (line-too-long)
bot/commands.py:494:0: C0304: Final newline missing (missing-final-newline)
bot/commands.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/commands.py:4:0: E0401: Unable to import 'pyrogram' (import-error)
bot/commands.py:5:0: E0401: Unable to import 'pyrogram.enums' (import-error)
bot/commands.py:6:0: E0401: Unable to import 'pyrogram.types' (import-error)
bot/commands.py:19:0: C0115: Missing class docstring (missing-class-docstring)
bot/commands.py:57:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:81:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:114:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:142:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:158:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:196:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:234:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:254:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:271:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:300:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:303:48: W0613: Unused argument 'clent' (unused-argument)
bot/commands.py:340:19: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:342:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:317:42: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:362:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:383:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:399:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:431:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/commands.py:431:4: R0914: Too many local variables (16/15) (too-many-locals)
bot/commands.py:433:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:437:26: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:441:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:445:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:449:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:455:40: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:461:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:465:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:469:39: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:473:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:477:31: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:481:35: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:485:36: W0613: Unused argument 'client' (unused-argument)
************* Module bot.__init__
bot/__init__.py:21:0: C0304: Final newline missing (missing-final-newline)
************* Module bot
bot/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module bot.utils
bot/utils.py:39:0: C0304: Final newline missing (missing-final-newline)
bot/utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/utils.py:7:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:13:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:11:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:14:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:18:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:32:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:37:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:35:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:38:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.bot_client
bot/bot_client.py:44:0: C0304: Final newline missing (missing-final-newline)
bot/bot_client.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/bot_client.py:3:0: E0401: Unable to import 'pyrogram' (import-error)
bot/bot_client.py:8:0: C0115: Missing class docstring (missing-class-docstring)
bot/bot_client.py:22:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:30:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:30:54: W0631: Using possibly undefined loop variable 'group_id' (undefined-loop-variable)
bot/bot_client.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:42:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module core.emby_api
core/emby_api.py:38:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:47:0: C0301: Line too long (110/100) (line-too-long)
core/emby_api.py:172:0: C0301: Line too long (109/100) (line-too-long)
core/emby_api.py:202:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:218:0: C0301: Line too long (103/100) (line-too-long)
core/emby_api.py:287:0: C0301: Line too long (106/100) (line-too-long)
core/emby_api.py:320:0: C0301: Line too long (119/100) (line-too-long)
core/emby_api.py:321:0: C0304: Final newline missing (missing-final-newline)
core/emby_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
core/emby_api.py:2:0: E0401: Unable to import 'requests' (import-error)
core/emby_api.py:21:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:42:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:49:16: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:54:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求 Emby 服务器超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:57:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:58:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到 Emby 服务器: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:58:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:61:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:62:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求 Emby 时发生未知错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:62:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:66:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:68:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:69:12: W0707: Consider explicitly re-raising using 'raise Exception(f'Emby API 请求失败') from e' (raise-missing-from)
core/emby_api.py:69:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:69:28: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
core/emby_api.py:79:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:83:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:94:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:98:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:131:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:135:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:168:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:172:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:183:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:187:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:198:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:202:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:214:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:218:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:231:15: W0718: Catching too general exception Exception (broad-exception-caught)
core/emby_api.py:232:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:247:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:265:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:275:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:282:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求路由服务超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:282:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:284:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:285:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到路由服务: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:285:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:287:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:288:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求路由服务时发生错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:288:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:298:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:305:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:309:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:316:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:320:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module services.user_service
services/user_service.py:168:0: C0303: Trailing whitespace (trailing-whitespace)
services/user_service.py:226:0: C0301: Line too long (112/100) (line-too-long)
services/user_service.py:249:0: C0301: Line too long (101/100) (line-too-long)
services/user_service.py:313:0: C0304: Final newline missing (missing-final-newline)
services/user_service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
services/user_service.py:8:0: E0401: Unable to import 'shortuuid' (import-error)
services/user_service.py:9:0: E0401: Unable to import 'sqlalchemy' (import-error)
services/user_service.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:61:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:63:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:102:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:114:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:126:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:129:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:148:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:152:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:154:21: E1101: Instance of 'UserService' has no '_check_register_permission' member (no-member)
services/user_service.py:155:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:176:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:188:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:222:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:223:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:231:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:245:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:246:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:254:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:268:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:269:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:280:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:21:0: R0904: Too many public methods (21/20) (too-many-public-methods)
************* Module services
services/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)

-----------------------------------
Your code has been rated at 6.02/10

@github-actions
Copy link

@linhemin 亲亲,喵喵检测到以下 Pylint 警告或错误,请主人检查并修改喵~

************* Module app
app.py:1:0: C0114: Missing module docstring (missing-module-docstring)
app.py:5:0: E0401: Unable to import 'pytz' (import-error)
app.py:6:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
app.py:7:0: E0401: Unable to import 'sqlalchemy' (import-error)
app.py:8:0: E0401: Unable to import 'sqlalchemy.ext.asyncio' (import-error)
app.py:28:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:67:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:69:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:98:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:126:11: W0718: Catching too general exception Exception (broad-exception-caught)
app.py:127:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module config
config.py:37:0: C0304: Final newline missing (missing-final-newline)
config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
config.py:3:0: E0401: Unable to import 'dotenv' (import-error)
config.py:10:0: C0115: Missing class docstring (missing-class-docstring)
config.py:10:0: R0902: Too many instance attributes (18/7) (too-many-instance-attributes)
config.py:32:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
config.py:32:20: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
config.py:10:0: R0903: Too few public methods (0/2) (too-few-public-methods)
config.py:37:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module models.config_model
models/config_model.py:20:0: C0304: Final newline missing (missing-final-newline)
models/config_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/config_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/config_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/config_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/config_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/config_model.py:9:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:9:0: R0903: Too few public methods (0/2) (too-few-public-methods)
models/config_model.py:17:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:17:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.user_model
models/user_model.py:107:0: C0304: Final newline missing (missing-final-newline)
models/user_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/user_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/user_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/user_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/user_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/user_model.py:11:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:50:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:52:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:57:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:59:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:64:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:66:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:73:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:78:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:80:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:85:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:104:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:104:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.__init__
models/__init__.py:4:0: C0305: Trailing newlines (trailing-newlines)
************* Module models
models/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module models.invite_code_model
models/invite_code_model.py:37:0: C0304: Final newline missing (missing-final-newline)
models/invite_code_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/invite_code_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/invite_code_model.py:4:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/invite_code_model.py:5:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/invite_code_model.py:6:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/invite_code_model.py:10:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: R0903: Too few public methods (1/2) (too-few-public-methods)
models/invite_code_model.py:34:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:34:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module bot.message_helper
bot/message_helper.py:51:0: C0301: Line too long (104/100) (line-too-long)
bot/message_helper.py:54:0: C0304: Final newline missing (missing-final-newline)
bot/message_helper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/message_helper.py:3:0: E0401: Unable to import 'pyrogram.errors' (import-error)
bot/message_helper.py:8:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/message_helper.py:12:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:17:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:27:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:32:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:50:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/message_helper.py:39:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:42:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:51:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.filters
bot/filters.py:59:0: C0304: Final newline missing (missing-final-newline)
bot/filters.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/filters.py:3:0: E0401: Unable to import 'pyrogram.filters' (import-error)
bot/filters.py:11:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:11:34: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:15:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:17:7: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:17:50: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:18:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:21:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:11:34: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:11:42: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:25:31: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:33:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:31:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:34:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:37:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:25:31: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:25:39: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:41:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:41:30: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:49:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:50:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:53:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:41:30: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:41:38: W0613: Unused argument 'client' (unused-argument)
************* Module bot.commands
bot/commands.py:73:0: C0301: Line too long (110/100) (line-too-long)
bot/commands.py:140:0: C0301: Line too long (106/100) (line-too-long)
bot/commands.py:296:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:310:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:381:0: C0301: Line too long (117/100) (line-too-long)
bot/commands.py:397:0: C0301: Line too long (102/100) (line-too-long)
bot/commands.py:444:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:448:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:453:0: C0301: Line too long (116/100) (line-too-long)
bot/commands.py:459:0: C0301: Line too long (108/100) (line-too-long)
bot/commands.py:468:0: C0301: Line too long (104/100) (line-too-long)
bot/commands.py:484:0: C0301: Line too long (101/100) (line-too-long)
bot/commands.py:494:0: C0304: Final newline missing (missing-final-newline)
bot/commands.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/commands.py:4:0: E0401: Unable to import 'pyrogram' (import-error)
bot/commands.py:5:0: E0401: Unable to import 'pyrogram.enums' (import-error)
bot/commands.py:6:0: E0401: Unable to import 'pyrogram.types' (import-error)
bot/commands.py:19:0: C0115: Missing class docstring (missing-class-docstring)
bot/commands.py:57:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:81:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:114:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:142:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:158:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:196:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:234:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:254:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:271:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:300:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:303:48: W0613: Unused argument 'clent' (unused-argument)
bot/commands.py:340:19: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:342:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:317:42: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:362:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:383:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:399:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:431:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/commands.py:431:4: R0914: Too many local variables (16/15) (too-many-locals)
bot/commands.py:433:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:437:26: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:441:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:445:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:449:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:455:40: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:461:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:465:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:469:39: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:473:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:477:31: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:481:35: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:485:36: W0613: Unused argument 'client' (unused-argument)
************* Module bot.__init__
bot/__init__.py:21:0: C0304: Final newline missing (missing-final-newline)
************* Module bot
bot/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module bot.utils
bot/utils.py:39:0: C0304: Final newline missing (missing-final-newline)
bot/utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/utils.py:7:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:13:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:11:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:14:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:18:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:32:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:37:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:35:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:38:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.bot_client
bot/bot_client.py:44:0: C0304: Final newline missing (missing-final-newline)
bot/bot_client.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/bot_client.py:3:0: E0401: Unable to import 'pyrogram' (import-error)
bot/bot_client.py:8:0: C0115: Missing class docstring (missing-class-docstring)
bot/bot_client.py:22:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:30:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:30:54: W0631: Using possibly undefined loop variable 'group_id' (undefined-loop-variable)
bot/bot_client.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:42:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module core.emby_api
core/emby_api.py:38:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:47:0: C0301: Line too long (110/100) (line-too-long)
core/emby_api.py:172:0: C0301: Line too long (109/100) (line-too-long)
core/emby_api.py:202:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:218:0: C0301: Line too long (103/100) (line-too-long)
core/emby_api.py:287:0: C0301: Line too long (106/100) (line-too-long)
core/emby_api.py:320:0: C0301: Line too long (119/100) (line-too-long)
core/emby_api.py:321:0: C0304: Final newline missing (missing-final-newline)
core/emby_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
core/emby_api.py:2:0: E0401: Unable to import 'requests' (import-error)
core/emby_api.py:21:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:42:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:49:16: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:54:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求 Emby 服务器超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:57:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:58:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到 Emby 服务器: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:58:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:61:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:62:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求 Emby 时发生未知错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:62:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:66:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:68:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:69:12: W0707: Consider explicitly re-raising using 'raise Exception(f'Emby API 请求失败') from e' (raise-missing-from)
core/emby_api.py:69:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:69:28: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
core/emby_api.py:79:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:83:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:94:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:98:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:131:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:135:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:168:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:172:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:183:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:187:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:198:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:202:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:214:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:218:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:231:15: W0718: Catching too general exception Exception (broad-exception-caught)
core/emby_api.py:232:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:247:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:265:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:275:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:282:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求路由服务超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:282:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:284:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:285:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到路由服务: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:285:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:287:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:288:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求路由服务时发生错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:288:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:298:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:305:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:309:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:316:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:320:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module services.user_service
services/user_service.py:168:0: C0303: Trailing whitespace (trailing-whitespace)
services/user_service.py:226:0: C0301: Line too long (112/100) (line-too-long)
services/user_service.py:249:0: C0301: Line too long (101/100) (line-too-long)
services/user_service.py:313:0: C0304: Final newline missing (missing-final-newline)
services/user_service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
services/user_service.py:8:0: E0401: Unable to import 'shortuuid' (import-error)
services/user_service.py:9:0: E0401: Unable to import 'sqlalchemy' (import-error)
services/user_service.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:61:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:63:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:102:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:114:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:126:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:129:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:148:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:152:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:154:21: E1101: Instance of 'UserService' has no '_check_register_permission' member (no-member)
services/user_service.py:155:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:176:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:188:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:222:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:223:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:231:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:245:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:246:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:254:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:268:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:269:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:280:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:21:0: R0904: Too many public methods (21/20) (too-many-public-methods)
************* Module services
services/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)

-----------------------------------
Your code has been rated at 6.02/10

- 优化工作流结构,增加步骤名称和注释,提高可读性
- 修改文件读取逻辑,确保正确读取 Pylint 报告
- 优化 PR 评论内容,增加开头和结尾的友好提示
- 修正代码中的注释和日志信息,使用更自然的语言
@github-actions
Copy link

@linhemin 亲亲,喵喵检测到以下 Pylint 警告或错误,请主人检查并修改喵~

************* Module app
app.py:1:0: C0114: Missing module docstring (missing-module-docstring)
app.py:5:0: E0401: Unable to import 'pytz' (import-error)
app.py:6:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
app.py:7:0: E0401: Unable to import 'sqlalchemy' (import-error)
app.py:8:0: E0401: Unable to import 'sqlalchemy.ext.asyncio' (import-error)
app.py:28:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:67:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:69:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:98:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:126:11: W0718: Catching too general exception Exception (broad-exception-caught)
app.py:127:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module config
config.py:37:0: C0304: Final newline missing (missing-final-newline)
config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
config.py:3:0: E0401: Unable to import 'dotenv' (import-error)
config.py:10:0: C0115: Missing class docstring (missing-class-docstring)
config.py:10:0: R0902: Too many instance attributes (18/7) (too-many-instance-attributes)
config.py:32:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
config.py:32:20: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
config.py:10:0: R0903: Too few public methods (0/2) (too-few-public-methods)
config.py:37:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module models.config_model
models/config_model.py:20:0: C0304: Final newline missing (missing-final-newline)
models/config_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/config_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/config_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/config_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/config_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/config_model.py:9:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:9:0: R0903: Too few public methods (0/2) (too-few-public-methods)
models/config_model.py:17:0: C0115: Missing class docstring (missing-class-docstring)
models/config_model.py:17:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.user_model
models/user_model.py:107:0: C0304: Final newline missing (missing-final-newline)
models/user_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/user_model.py:2:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/user_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/user_model.py:4:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/user_model.py:5:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/user_model.py:11:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:50:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:52:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:57:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:59:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:64:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:66:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:73:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:78:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:80:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:85:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:104:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:104:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module models.__init__
models/__init__.py:4:0: C0305: Trailing newlines (trailing-newlines)
************* Module models
models/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module models.invite_code_model
models/invite_code_model.py:37:0: C0304: Final newline missing (missing-final-newline)
models/invite_code_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/invite_code_model.py:3:0: E0401: Unable to import 'py_tools.connections.db.mysql' (import-error)
models/invite_code_model.py:4:0: E0401: Unable to import 'py_tools.connections.db.mysql.orm_model' (import-error)
models/invite_code_model.py:5:0: E0401: Unable to import 'sqlalchemy' (import-error)
models/invite_code_model.py:6:0: E0401: Unable to import 'sqlalchemy.orm' (import-error)
models/invite_code_model.py:10:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: R0903: Too few public methods (1/2) (too-few-public-methods)
models/invite_code_model.py:34:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:34:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module bot.message_helper
bot/message_helper.py:51:0: C0301: Line too long (104/100) (line-too-long)
bot/message_helper.py:54:0: C0304: Final newline missing (missing-final-newline)
bot/message_helper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/message_helper.py:3:0: E0401: Unable to import 'pyrogram.errors' (import-error)
bot/message_helper.py:8:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/message_helper.py:12:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:17:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:27:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:32:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:50:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/message_helper.py:39:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:42:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:51:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.filters
bot/filters.py:59:0: C0304: Final newline missing (missing-final-newline)
bot/filters.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/filters.py:3:0: E0401: Unable to import 'pyrogram.filters' (import-error)
bot/filters.py:11:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:11:34: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:15:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:17:7: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:17:50: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:18:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:21:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:11:34: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:11:42: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:25:31: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:33:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:31:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:34:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:37:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:25:31: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:25:39: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:41:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:41:30: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:49:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:50:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:53:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:41:30: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:41:38: W0613: Unused argument 'client' (unused-argument)
************* Module bot.commands
bot/commands.py:73:0: C0301: Line too long (110/100) (line-too-long)
bot/commands.py:140:0: C0301: Line too long (106/100) (line-too-long)
bot/commands.py:296:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:310:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:381:0: C0301: Line too long (117/100) (line-too-long)
bot/commands.py:397:0: C0301: Line too long (102/100) (line-too-long)
bot/commands.py:444:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:448:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:453:0: C0301: Line too long (116/100) (line-too-long)
bot/commands.py:459:0: C0301: Line too long (108/100) (line-too-long)
bot/commands.py:468:0: C0301: Line too long (104/100) (line-too-long)
bot/commands.py:484:0: C0301: Line too long (101/100) (line-too-long)
bot/commands.py:494:0: C0304: Final newline missing (missing-final-newline)
bot/commands.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/commands.py:4:0: E0401: Unable to import 'pyrogram' (import-error)
bot/commands.py:5:0: E0401: Unable to import 'pyrogram.enums' (import-error)
bot/commands.py:6:0: E0401: Unable to import 'pyrogram.types' (import-error)
bot/commands.py:19:0: C0115: Missing class docstring (missing-class-docstring)
bot/commands.py:57:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:81:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:114:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:142:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:158:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:196:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:234:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:254:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:271:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:300:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:303:48: W0613: Unused argument 'clent' (unused-argument)
bot/commands.py:340:19: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:342:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:317:42: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:362:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:383:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:399:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:431:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/commands.py:431:4: R0914: Too many local variables (16/15) (too-many-locals)
bot/commands.py:433:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:437:26: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:441:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:445:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:449:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:455:40: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:461:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:465:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:469:39: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:473:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:477:31: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:481:35: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:485:36: W0613: Unused argument 'client' (unused-argument)
************* Module bot.__init__
bot/__init__.py:21:0: C0304: Final newline missing (missing-final-newline)
************* Module bot
bot/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module bot.utils
bot/utils.py:39:0: C0304: Final newline missing (missing-final-newline)
bot/utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/utils.py:7:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:13:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:11:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:14:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:18:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:32:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:37:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:35:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:38:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.bot_client
bot/bot_client.py:44:0: C0304: Final newline missing (missing-final-newline)
bot/bot_client.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/bot_client.py:3:0: E0401: Unable to import 'pyrogram' (import-error)
bot/bot_client.py:8:0: C0115: Missing class docstring (missing-class-docstring)
bot/bot_client.py:22:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:30:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:30:54: W0631: Using possibly undefined loop variable 'group_id' (undefined-loop-variable)
bot/bot_client.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:42:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module core.emby_api
core/emby_api.py:38:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:47:0: C0301: Line too long (110/100) (line-too-long)
core/emby_api.py:172:0: C0301: Line too long (109/100) (line-too-long)
core/emby_api.py:202:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:218:0: C0301: Line too long (103/100) (line-too-long)
core/emby_api.py:287:0: C0301: Line too long (106/100) (line-too-long)
core/emby_api.py:320:0: C0301: Line too long (119/100) (line-too-long)
core/emby_api.py:321:0: C0304: Final newline missing (missing-final-newline)
core/emby_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
core/emby_api.py:2:0: E0401: Unable to import 'requests' (import-error)
core/emby_api.py:21:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:42:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:49:16: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:54:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求 Emby 服务器超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:57:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:58:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到 Emby 服务器: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:58:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:61:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:62:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求 Emby 时发生未知错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:62:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:66:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:68:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:69:12: W0707: Consider explicitly re-raising using 'raise Exception(f'Emby API 请求失败') from e' (raise-missing-from)
core/emby_api.py:69:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:69:28: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
core/emby_api.py:79:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:83:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:94:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:98:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:131:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:135:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:168:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:172:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:183:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:187:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:198:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:202:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:214:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:218:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:231:15: W0718: Catching too general exception Exception (broad-exception-caught)
core/emby_api.py:232:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:247:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:265:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:275:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:282:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求路由服务超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:282:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:284:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:285:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到路由服务: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:285:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:287:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:288:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求路由服务时发生错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:288:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:298:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:305:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:309:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:316:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:320:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module services.user_service
services/user_service.py:168:0: C0303: Trailing whitespace (trailing-whitespace)
services/user_service.py:226:0: C0301: Line too long (112/100) (line-too-long)
services/user_service.py:249:0: C0301: Line too long (101/100) (line-too-long)
services/user_service.py:313:0: C0304: Final newline missing (missing-final-newline)
services/user_service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
services/user_service.py:8:0: E0401: Unable to import 'shortuuid' (import-error)
services/user_service.py:9:0: E0401: Unable to import 'sqlalchemy' (import-error)
services/user_service.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:61:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:63:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:102:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:114:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:126:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:129:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:148:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:152:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:154:21: E1101: Instance of 'UserService' has no '_check_register_permission' member (no-member)
services/user_service.py:155:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:176:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:188:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:222:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:223:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:231:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:245:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:246:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:254:16: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:268:15: W0718: Catching too general exception Exception (broad-exception-caught)
services/user_service.py:269:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
services/user_service.py:280:12: W0719: Raising too general exception: Exception (broad-exception-raised)
services/user_service.py:21:0: R0904: Too many public methods (21/20) (too-many-public-methods)
************* Module services
services/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)

-----------------------------------
Your code has been rated at 6.02/10

- 新增安装依赖步骤,确保 requirements.txt 中的包被正确安装
- 优化 Pylint 安装步骤,提高代码清晰度
- 保持执行 Pylint 检查的逻辑不变
@github-actions
Copy link

@linhemin 亲亲,喵喵检测到以下 Pylint 警告或错误,请主人检查并修改喵~

************* Module models.config_model
models/config_model.py:1:0: F0002: models/config_model.py: Fatal error while checking 'models/config_model.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2025-02-10-13-18-03.txt'. (astroid-error)
************* Module app
app.py:1:0: C0114: Missing module docstring (missing-module-docstring)
app.py:28:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:67:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:69:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:98:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
app.py:126:11: W0718: Catching too general exception Exception (broad-exception-caught)
app.py:127:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module config
config.py:37:0: C0304: Final newline missing (missing-final-newline)
config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
config.py:10:0: C0115: Missing class docstring (missing-class-docstring)
config.py:10:0: R0902: Too many instance attributes (18/7) (too-many-instance-attributes)
config.py:32:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
config.py:32:20: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
config.py:10:0: R0903: Too few public methods (0/2) (too-few-public-methods)
config.py:37:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module models.user_model
models/user_model.py:107:0: C0304: Final newline missing (missing-final-newline)
models/user_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/user_model.py:11:0: C0115: Missing class docstring (missing-class-docstring)
models/user_model.py:50:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:52:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:57:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:59:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:64:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:66:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:71:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:73:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:78:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:80:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:85:12: W0719: Raising too general exception: Exception (broad-exception-raised)
models/user_model.py:104:0: C0115: Missing class docstring (missing-class-docstring)
************* Module models.__init__
models/__init__.py:4:0: C0305: Trailing newlines (trailing-newlines)
************* Module models
models/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module models.invite_code_model
models/invite_code_model.py:37:0: C0304: Final newline missing (missing-final-newline)
models/invite_code_model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
models/invite_code_model.py:10:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:18:0: C0115: Missing class docstring (missing-class-docstring)
models/invite_code_model.py:34:0: C0115: Missing class docstring (missing-class-docstring)
************* Module bot.message_helper
bot/message_helper.py:51:0: C0301: Line too long (104/100) (line-too-long)
bot/message_helper.py:54:0: C0304: Final newline missing (missing-final-newline)
bot/message_helper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/message_helper.py:8:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/message_helper.py:12:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:17:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:27:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:32:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:50:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/message_helper.py:39:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:42:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/message_helper.py:51:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.filters
bot/filters.py:59:0: C0304: Final newline missing (missing-final-newline)
bot/filters.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/filters.py:11:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:11:34: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:15:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:17:7: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:17:50: E1101: Instance of 'Config' has no 'channel_members' member (no-member)
bot/filters.py:18:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:21:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:11:34: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:11:42: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:25:31: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:33:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:31:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:34:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:37:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:25:31: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:25:39: W0613: Unused argument 'client' (unused-argument)
bot/filters.py:41:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/filters.py:41:30: W0622: Redefining built-in 'filter' (redefined-builtin)
bot/filters.py:49:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/filters.py:47:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:50:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:53:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/filters.py:41:30: W0613: Unused argument 'filter' (unused-argument)
bot/filters.py:41:38: W0613: Unused argument 'client' (unused-argument)
************* Module bot.commands
bot/commands.py:73:0: C0301: Line too long (110/100) (line-too-long)
bot/commands.py:140:0: C0301: Line too long (106/100) (line-too-long)
bot/commands.py:296:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:310:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:381:0: C0301: Line too long (117/100) (line-too-long)
bot/commands.py:397:0: C0301: Line too long (102/100) (line-too-long)
bot/commands.py:444:0: C0301: Line too long (115/100) (line-too-long)
bot/commands.py:448:0: C0301: Line too long (113/100) (line-too-long)
bot/commands.py:453:0: C0301: Line too long (116/100) (line-too-long)
bot/commands.py:459:0: C0301: Line too long (108/100) (line-too-long)
bot/commands.py:468:0: C0301: Line too long (104/100) (line-too-long)
bot/commands.py:484:0: C0301: Line too long (101/100) (line-too-long)
bot/commands.py:494:0: C0304: Final newline missing (missing-final-newline)
bot/commands.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/commands.py:19:0: C0115: Missing class docstring (missing-class-docstring)
bot/commands.py:57:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:81:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:114:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:142:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:158:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:196:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:234:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:254:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:271:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:300:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:303:48: W0613: Unused argument 'clent' (unused-argument)
bot/commands.py:340:19: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:342:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/commands.py:317:42: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:362:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:383:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:399:15: W0718: Catching too general exception Exception (broad-exception-caught)
bot/commands.py:431:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/commands.py:431:4: R0914: Too many local variables (16/15) (too-many-locals)
bot/commands.py:433:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:437:26: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:441:25: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:445:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:449:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:455:40: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:461:32: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:465:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:469:39: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:473:29: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:477:31: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:481:35: W0613: Unused argument 'client' (unused-argument)
bot/commands.py:485:36: W0613: Unused argument 'client' (unused-argument)
************* Module bot.__init__
bot/__init__.py:21:0: C0304: Final newline missing (missing-final-newline)
************* Module bot
bot/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module bot.utils
bot/utils.py:39:0: C0304: Final newline missing (missing-final-newline)
bot/utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/utils.py:7:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:13:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:11:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:14:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:18:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:32:0: C0116: Missing function or method docstring (missing-function-docstring)
bot/utils.py:37:11: W0718: Catching too general exception Exception (broad-exception-caught)
bot/utils.py:35:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/utils.py:38:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module bot.bot_client
bot/bot_client.py:44:0: C0304: Final newline missing (missing-final-newline)
bot/bot_client.py:1:0: C0114: Missing module docstring (missing-module-docstring)
bot/bot_client.py:8:0: C0115: Missing class docstring (missing-class-docstring)
bot/bot_client.py:22:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:30:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
bot/bot_client.py:30:54: W0631: Using possibly undefined loop variable 'group_id' (undefined-loop-variable)
bot/bot_client.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
bot/bot_client.py:42:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module core.emby_api
core/emby_api.py:38:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:47:0: C0301: Line too long (110/100) (line-too-long)
core/emby_api.py:172:0: C0301: Line too long (109/100) (line-too-long)
core/emby_api.py:202:0: C0301: Line too long (105/100) (line-too-long)
core/emby_api.py:218:0: C0301: Line too long (103/100) (line-too-long)
core/emby_api.py:287:0: C0301: Line too long (106/100) (line-too-long)
core/emby_api.py:320:0: C0301: Line too long (119/100) (line-too-long)
core/emby_api.py:321:0: C0304: Final newline missing (missing-final-newline)
core/emby_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
core/emby_api.py:21:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:42:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:49:16: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:54:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求 Emby 服务器超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:54:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:57:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:58:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到 Emby 服务器: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:58:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:61:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:62:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求 Emby 时发生未知错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:62:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:66:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:68:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:69:12: W0707: Consider explicitly re-raising using 'raise Exception(f'Emby API 请求失败') from e' (raise-missing-from)
core/emby_api.py:69:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:69:28: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
core/emby_api.py:79:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:83:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:94:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:98:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:131:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:135:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:168:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:172:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:183:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:187:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:198:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:202:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:214:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:218:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:231:15: W0718: Catching too general exception Exception (broad-exception-caught)
core/emby_api.py:232:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:247:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:265:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:275:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:282:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('请求路由服务超时,请稍后重试或检查网络连接。') from exc' (raise-missing-from)
core/emby_api.py:282:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:284:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:285:12: W0707: Consider explicitly re-raising using 'raise Exception(f'无法连接到路由服务: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:285:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:287:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:288:12: W0707: Consider explicitly re-raising using 'raise Exception(f'请求路由服务时发生错误: {str(e)}') from e' (raise-missing-from)
core/emby_api.py:288:12: W0719: Raising too general exception: Exception (broad-exception-raised)
core/emby_api.py:298:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:305:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:309:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:316:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
core/emby_api.py:320:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
************* Module services.user_service
services/user_service.py:168:0: C0303: Trailing whitespace (trailing-whitespace)
services/user_service.py:226:0: C0301: Line too long (112/100) (line-too-long)
services/user_service.py:249:0: C0301: Line too long (101/100) (line-too-long)
services/user_service.py:313:0: C0304: Final newline missing (missing-final-newline)
services/user_service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
services/user_service.py:1:0: F0002: services/user_service.py: Fatal error while checking 'services/user_service.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2025-02-10-13-18-11.txt'. (astroid-error)
************* Module services
services/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)

-----------------------------------
Your code has been rated at 0.00/10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant